package com.yykj.user.center.server.controller;

import com.yykj.user.center.client.dto.ConsultationStatisticsDto;
import com.yykj.user.center.client.dto.DoctorConsultationCountDto;
import com.yykj.user.center.server.service.DoctorService;
import com.yykj.user.center.server.service.patient.ConsultationInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/api/proto/doctor")
@Api(tags = "内部服务之间调用接口-外部不用")
public class ProtoDoctorController {

    @Autowired
    private ConsultationInfoService consultationInfoService;

    @PostMapping("/doctorConsultationCount")
    @ApiOperation(value = "医生问诊数量", notes = "医生问诊数量")
    public List<DoctorConsultationCountDto> doctorConsultationCount(
            @RequestBody List<String> doctorIds
    ) {
        return consultationInfoService.doctorConsultationCount(doctorIds);
    }
}
